package be.kuleuven.cs.mop.domain.model.impl;


import be.kuleuven.cs.mop.domain.model.TaskStatus;



public class TaskStateSuccessful extends TaskState {
	
	
	protected TaskStateSuccessful(final TaskImpl task) {
		super(task);
	}
	
	/**
	 * Business rule 3 is already always enforced when this state is successful, so check is not necessary when time changes
	 */
	protected void enforceBusinessRule3(Clock time) {
		// Ignored
	}
	
	@Override
	protected void setSuccessful() { 
		// Ignore
	}
	
	@Override
	public boolean isSuccessful() { return true; }
	
	@Override
	public TaskStatus toStatus() { return TaskStatus.SUCCESSFUL; }
	
}